package com.first.computerstore.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @version 1.0
 * @description: 支付宝沙箱支付配置类
 */
@Data
@Component
public class AlipayConfig {

    @Value("${server.ip}")
    private static String ip;
    @Value("${server.port}")
    private static String port;

    public static String appId = "9021000122699281";
    //应用私有秘钥
    public static String appPrivateKey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCbPapbI26fUehPzu9+f8jcqoIWganVLiZ61Y920PeRexaXDd5VN4h1FmxgZquGtlAPTGq6/cD/SMxkt4Q1LlxYUfK4/1kbBrbmKD+5kMwoNkwCOnVdKJ7wIk6oSUt8goi2hVmfPK/Q0GUXG7WCt7/26nhynpncx6NOjje7ZmnMrG9M+Xh11qRSM0NtpPMqeZA7rR20nk6afySB5tYjCSVN2bZxarCxsAxdTX+J4DhzLomSucqUSItHnqJeuhrpiGvO9GH/vf5/74O9PJ2EhjwnfUXnKETSyBAu3c4vvAFQbUvAAEMDYK/WHmGbyUTziXM4oY1nPxUluZqiFXtGvKBLAgMBAAECggEAEwt1osiuAY2i2megqfwzQB8K5ofxtd17iwY4G3N3a7mWA+IHrJyrePHPSeROlrA3Eillzpri2m6r5I8/AOc3HP6wsFFjNRWVypaVesZwxV4j5QIW897P4NXUoICdaiD5dKrXW9muGAf43uTfV7IDMt+A907NwXAccL6xx6PAxwMOnSfuQau0HAg8W+AXqTK6HBiMozSP1cqBL2pgl5mBtd/I5btGxqtl0zP8xM25M6D0kUOh9w09/tXE0COCxmC9J0eDP2xBro16DcHz0FL1hqAP2v74JOTdFCXyqVez4HtVmnfkID9vxqWAyolvJljmDkaDThafpHxzj6cP2FQGgQKBgQDzs2819fpGe/hKJygpIFbnMz/aoXg6+YeHmJY8gYBLulCiNKo/TuidanvEUWggc/hAvDPTaDdx35xsdX4o6C+xVhVtA7YQbPiWdh/zgsRNiOhqOKBeMwqkmo/X84XpZXXIEiTAi2kokxCyKX7y34lC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EwmDkelSP/jpUPLzsRjcgcVrK1z1FIVeUJcFIjvHlDbd2FUFxiU6FXEQ0gvNwIDAQAB";


    public static String notifyUrl = "http://" + ip + ":" + port  + "/alipay/returnNotice";
    //同步回调地址
    public static String returnUrl = "http://" + ip + ":" + port  + "/alipay/returnNotice";

    //推荐使用这个秘钥
    public static String signType = "RSA2";
    //使用的编码格式
    public static String charset = "utf-8";
    //支付宝默认网关
    public static String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";
}